package com.bjpowerndoe.ylb.web.model.param;

import lombok.Data;

import java.math.BigDecimal;

/**
 *
 */
@Data
public class InvestParam {
    private Integer productId;
    private BigDecimal investMoney;

    public boolean checkData(){
        if( productId == null || productId < 1 ){
            return false;
        }

        if( investMoney == null || investMoney.doubleValue() < 100 || investMoney.doubleValue() % 100 !=0){
            return  false;
        }
        return true;
    }
}
